forEach

inline fun <A, B> Either<A, B>.forEach(f: (B) -> Unit)(source)

Performs an effect on the right side of the Either.


inline fun <A> Option<A>.forEach(f: (A) -> Unit)(source)

Runs a side effect if the option is a Some